import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Index from './views/Index.vue'
import Banner from './views/Banner.vue'
import Contact from './views/Contact.vue'
import Cooperation from './views/Cooperation.vue'
import Admin from './views/Admin.vue'
import Video from './views/Video.vue'
import VideoCateGory from './views/VideoCateGory.vue'
import IndexAbout from './views/IndexAbout.vue'
import AddressAbout from './views/AddressAbout.vue'
let routes = [{
    path: '/login',
    component: Login,
    name: '',
    hidden: true
}, {
    path: '/404',
    component: NotFound,
    name: '404',
    hidden: true
}, {
    path: '/',
    component: Home,
    redirect: '/index',
    name: '',
    hidden: true
}, {
    path: '/',
    component: Home,
    children: [
        { path: '/index', component: Index, name: '主页' }
    ],
    hidden: true
}, {
    path: '/',
    component: Home,
    iconCls: 'fa fa-cog',
    name: '设置',
    children: [
        { path: '/indexAbout', component: IndexAbout, name: '首页相关' },
        { path: '/addressAbout', component: AddressAbout, name: '地址相关' },
        // { path: '/config', component: Config, name: '其他' }
    ]
}, {
    path: '/',
    component: Home,
    iconCls: 'fa fa-flag-checkered',
    leaf: true,
    children: [
        { path: '/banner', component: Banner, name: 'Banner' }
    ]
}, {
    path: '/',
    component: Home,
    iconCls: 'fa fa-envelope-open-o',
    leaf: true,
    children: [
        { path: '/contact', component: Contact, name: '联系我们' }
    ]
}, {
    path: '/',
    component: Home,
    iconCls: 'fa fa-handshake-o',
    leaf: true,
    children: [
        { path: '/cooperation', component: Cooperation, name: '合作企业' }
    ]
}, {
    path: '/',
    component: Home,
    iconCls: 'fa fa-user-o',
    leaf: true,
    children: [
        { path: '/admin', component: Admin, name: '账号管理' }
    ]
},{
    path: '/',
    component: Home,
    iconCls: 'fa fa-film',
    leaf: true,
    children: [
        { path: '/video', component: Video, name: '视频管理' }
    ]
},{
    path: '/',
    component: Home,
    iconCls: 'fa fa-file-video-o',
    leaf: true,
    children: [
        { path: '/videoCateGory', component: VideoCateGory, name: '视频分类' }
    ]
}, {
    path: '*',
    redirect: '/404',
    hidden: true
}];

export default routes;